<?php
namespace app\models;

use think\Model;

class ProfitLog extends Model
{
    protected $pk = 'id';
    protected $autoWriteTimestamp = 'datetime';
    protected $createTime = 'created';

    public function getRateAttr($value){
        return round($value*100,4);
    }

}   